/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package datos;

/**
 *
 * @author miguesaca
 */
public class AlarmaIncendio extends AlarmaProducto{
    private Police policia;
    private Firefighter firefighter;

    public AlarmaIncendio(Emergencie emergencie) {
        super(emergencie);
        policia = new Police(emergencie);
       firefighter = new Firefighter(emergencie);
       emergencie.attach(policia);
       emergencie.attach(firefighter);
    }
//    public void crearEntidad() {
//       policia = new Police(emergencie);
//       firefighter = new Firefighter(emergencie);
//       emergencie.attach(policia);
//       emergencie.attach(firefighter);
//    }


}
